﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/GPSTrackingAdminWebsiteManager.Master" AutoEventWireup="true" CodeBehind="ImeiManager.aspx.cs" Inherits="GPSTrackingClientsWebsiteManager.Admin.ImeiManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .RadGrid .rgMasterTable {
            border-collapse: separate;
            border-spacing: 0;
        }

        .rgCommandTable thead {
            display: none;
        }

        .RadGrid .rgRefresh {
            width: 18px;
            height: 18px;
            vertical-align: bottom;
        }

        .RadGrid .rgRefresh {
            width: 16px;
            height: 16px;
            border: 0;
            margin: 0;
            padding: 0;
            background-color: transparent;
            background-repeat: no-repeat;
            vertical-align: middle;
            font-size: 1px;
            cursor: pointer;
        }

        .RadGrid .rgHeader {
            padding-top: 5px;
            padding-bottom: 4px;
            text-align: left;
            font-weight: normal;
        }

        .RadGrid .rgHeader {
            padding-left: 7px;
            padding-right: 7px;
        }

        .RadGrid .rgHeader {
            cursor: default;
        }

        .RadGrid .rgFilterBox {
            border-width: 1px;
            border-style: solid;
            margin: 0;
            height: 15px;
            padding: 2px 1px 3px;
            font-size: 12px;
            vertical-align: middle;
        }

        .RadGrid .rgFilter {
            width: 22px;
            height: 22px;
            margin: 0 0 0 2px;
        }

        .RadGrid .rgFilter {
            width: 16px;
            height: 16px;
            border: 0;
            margin: 0;
            padding: 0;
            background-color: transparent;
            background-repeat: no-repeat;
            vertical-align: middle;
            font-size: 1px;
            cursor: pointer;
        }

        .auto-style2 {
            vertical-align: middle;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="auto-style1">
        <tr>
            <td style="vertical-align: top">
                <fieldset>
                    <legend>Lista de Usuarios</legend>
                    <telerik:RadGrid ID="UserGrid" runat="server" AllowFilteringByColumn="True" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" OnNeedDataSource="UserGrid_NeedDataSource" Skin="Metro" OnItemCommand="UserGrid_ItemCommand">
                        <MasterTableView CommandItemDisplay="Top" NoMasterRecordsText="No hay usuarios">
                            <CommandItemSettings ExportToPdfText="Export to PDF" RefreshText="Actualizar" ShowAddNewRecordButton="False"></CommandItemSettings>

                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>

                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>

                            <Columns>
                                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="UserEdit" FilterControlAltText="Filter column column" ImageUrl="../Template/Icon/sign-up-icon.png" UniqueName="column">
                                </telerik:GridButtonColumn>
                                <telerik:GridBoundColumn DataField="Username" FilterControlAltText="Filter Username column" HeaderText="Usuario" UniqueName="Username" AutoPostBackOnFilter="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Nombre" UniqueName="Name" AutoPostBackOnFilter="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="FirstName" FilterControlAltText="Filter FirstName column" HeaderText="Primer Apellido" UniqueName="FirstName" AutoPostBackOnFilter="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="LastName" FilterControlAltText="Filter LastName column" HeaderText="Segundo Apellido" UniqueName="LastName" AutoPostBackOnFilter="true">
                                </telerik:GridBoundColumn>

                            </Columns>

                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                            </EditFormSettings>
                        </MasterTableView>

                        <FilterMenu EnableImageSprites="False"></FilterMenu>
                    </telerik:RadGrid>
                </fieldset>
            </td>
            <td style="vertical-align: top">
                <fieldset>
                    <legend>Grupos por usuario</legend>
                    <telerik:RadGrid ID="GroupGrid" runat="server" AllowFilteringByColumn="True" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Skin="Metro" OnNeedDataSource="GroupGrid_NeedDataSource">
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                        <MasterTableView CommandItemDisplay="Top" NoMasterRecordsText="No hay grupos " DataKeyNames="GroupID">
                            <CommandItemSettings ExportToPdfText="Export to PDF" RefreshText="Actualizar" ShowAddNewRecordButton="False"></CommandItemSettings>

                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>

                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>

                            <Columns>
                                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                </telerik:GridClientSelectColumn>
                                <telerik:GridBoundColumn DataField="GroupName" FilterControlAltText="Filter GroupName column" HeaderText="Grupos por Usuario" UniqueName="GroupName" AutoPostBackOnFilter="true">
                                </telerik:GridBoundColumn>
                            </Columns>

                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                            </EditFormSettings>
                        </MasterTableView>

                        <FilterMenu EnableImageSprites="False"></FilterMenu>
                    </telerik:RadGrid>
                </fieldset>
            </td>
            <td style="vertical-align: top">
                <fieldset>
                    <legend>GPS sin grupo</legend>
                    <telerik:RadGrid ID="ImeiGroup" runat="server" AllowFilteringByColumn="True" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Skin="Metro" OnItemCommand="ImeiGroup_ItemCommand" OnNeedDataSource="ImeiGroup_NeedDataSource" AllowMultiRowSelection="true" OnItemDataBound="ImeiGroup_ItemDataBound">
                           <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                        <MasterTableView CommandItemDisplay="Top" NoMasterRecordsText="No hay grupos ">
                            <CommandItemSettings ExportToPdfText="Export to PDF" RefreshText="Actualizar" AddNewRecordText="Guardar al grupo seleccionado"></CommandItemSettings>

                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>

                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>

                            <Columns>
                                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                </telerik:GridClientSelectColumn>
                                <telerik:GridBoundColumn DataField="Imei" FilterControlAltText="Filter GroupName column" HeaderText="GPS sin grupo" UniqueName="Imei" AutoPostBackOnFilter="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="Tipo" UniqueName="TemplateColumn1">
                                            <ItemTemplate>
                                                    <telerik:RadComboBox  ID="RadComboBox1" Runat="server" >                                                       
                                                    </telerik:RadComboBox>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>  
                                
                                 <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="Modelo" UniqueName="TemplateColumn2">
                                            <ItemTemplate>
                                                    <telerik:RadComboBox  ID="RadComboBox2" Runat="server" >                                                       
                                                    </telerik:RadComboBox>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>    
                            </Columns>

                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                            </EditFormSettings>
                        </MasterTableView>

                        <FilterMenu EnableImageSprites="False"></FilterMenu>
                    </telerik:RadGrid>
                </fieldset>
            </td>
        </tr>
    </table>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager>
    <telerik:RadNotification ID="RadNotification1" runat="server" Text="Guardado" Skin="Metro"></telerik:RadNotification>
</asp:Content>
